package com.atguigu.gulimall.ware.fegin;

import com.atguigu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author zhangtao
 * @date 2022/9/25 - 17:21
 */
@FeignClient("gulimall-product")
public interface ProductFeginService {
    /**
     * 让所有请求经过网关
     * @FeignClient("gulimall-gateway")
     * @RequestMapping("/api/product/skuinfo/info/{skuId}")
     *让后台指定服务处理
     * @FeignClient("gulimall-product")
     * @RequestMapping("/product/skuinfo/info/{skuId}")
     */
    @RequestMapping("/product/skuinfo/info/{skuId}")
     R info(@PathVariable("skuId") Long skuId);
}
